#include "proc.hpp"

int main()
{
    if(mkfifo(fifoName.c_str(),0666) < 0 )
    {
        perror("mkfifo");
        exit(1);
    }

    int fd = open(fifoName.c_str(),O_WRONLY);
    if(fd < 0 )
    {
        perror("open");
        exit(1);
    }

    char* buff = "i am process A";
    write(fd,buff,strlen(buff));
    
    close(fd);
    unlink(fifoName.c_str());
    return 0;
}